Application
//应用素材
.directive('applicationMaterial',function(){
	return {
		restrict:'E',
		scope:{
			materialList:'=',
			materialPreview:'=',
			ajaxPreview:'&'
		},
		replace:true,
		templateUrl:'views/application/applicationMaterialList.template.html',
		link:function(scope,element,attrs){
			scope.active = false;
			scope.openPreview = function(id){
				scope.ajaxPreview({id:id});
				scope.active = true;
			}
		}
	}
})